<?php
function GetNav()
{
	//calling getConnection in global.php file to make connection to database
	$conn = getConnection();
	$userresults = $conn->query('Select * FROM navigation');
	$conn->close();
	return $nav;
}
?>